/* Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f0f0f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    padding: 20px;
}

.container {
    background: linear-gradient(135deg, #6f7fd9, #4e5ab2);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Titre */
h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Vidéo et Canvas */
video, canvas {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
    border: 2px solid #fff;
}

/* Boutons */
button {
    background-color: #ff6f61;
    color: #fff;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 30px;
    border: none;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
}

button:hover {
    background-color: #e2574b;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.98);
}

/* Section Photo et Vidéo */
section {
    margin-top: 40px;
}

h2 {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 20px;
}

/* Téléchargement */
a {
    display: inline-block;
    text-decoration: none;
    color: #ff6f61;
    font-size: 18px;
    margin-top: 15px;
    transition: color 0.3s ease;
}

a:hover {
    color: #e2574b;
}

/* Animation de fade pour la vidéo enregistrée */
video#recordedVideo {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 2em;
    }
    video, canvas {
        width: 100%;
        margin-top: 10px;
    }
    button {
        padding: 12px 25px;
        font-size: 16px;
    }
}
/* Ajout d'un bouton de suppression */
button.delete {
    background-color: #e2574b; /* Rouge pour supprimer */
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 30px;
    border: none;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
}

button.delete:hover {
    background-color: #d44b3b;
    transform: scale(1.05);
}

button.delete:active {
    transform: scale(0.98);
}
